package com.lims.algorithm.algset.graph.expression;

import java.io.Serializable;

/**
 * <功能简述>
 *
 * @author lims
 * @date 2020-11-20 11:20
 */
public class BaseVertexData implements Serializable {
    private static final long serialVersionUID = 108836255228919816L;
    /**
     * 图结点的key
     */
    private String key;

    /**
     * 顶点是否为叶子（图中出度为0）
     */
    private boolean isLeaf;

    public BaseVertexData() {
    }

    public BaseVertexData(String key) {
        this.key = key;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public boolean getIsLeaf() {
        return isLeaf;
    }

    public void setIsLeaf(boolean isLeaf) {
        this.isLeaf = isLeaf;
    }
}
